import HTTP from "@/http";
import { LoginApi } from "./type";

const $h = new HTTP({timeout:5000})

export const loginApi = (params:LoginApi.RequestParams)=>{
    return $h.post<LoginApi.ResponseData>(LoginApi.URL,params)
}